package com.chat.common.utils;

import java.util.Random;


public class VerifyCodeUtil {
    public static String codeBuilder(int length){
        StringBuilder sb = new StringBuilder();
        Random random = new Random();
        for (int i = 0; i <length ; i++) {
            sb.append(random.nextInt(10));
        }
        return sb.toString();
    }
}
